<?php 
class MySqlAdmin{
	private $_connectionId = '';
	
	public function __construct($db){
		if ($this->hasComponents($db)) {
			$this->_connectionId = $this->getComponents($db);
		}		
	}
	public function processList(){
		$sql = 'SHOW PROCESSLIST';
		// `Id`,`User`,`Host`,`db`,`Command`,`Time`,`State`,`Info`,`Rows_sent`,`Rows_examined`,`Rows_read`
		$processListData = Yii::app ()->db->createCommand ( $sql )->queryAll ();
		
		foreach ($processListData as $row => $process) {
			;
		}
	}
	
	public function renderTable(){
		
	}
}
?>